// 定义操作系统的枚举
enum OperatingSystem {
    Windows = "win32",
    Mac = "darwin",
    Other = "other"
}
// 使用枚举来判断操作系统
export const isWindows: boolean = process.platform === OperatingSystem.Windows;
export const isMac: boolean = process.platform === OperatingSystem.Mac;
export const isOther: boolean = process.platform !== OperatingSystem.Windows && process.platform !== OperatingSystem.Mac;
// 定义环境模式的枚举
enum EnvironmentMode {
    Development = "development",
    Production = "production",
    Other = "other"
}
// 使用枚举来判断环境模式
export const isDevelopment: boolean = process.env.NODE_ENV === EnvironmentMode.Development;
export const isProduction: boolean = process.env.NODE_ENV === EnvironmentMode.Production;
export const isOtherEnvironment: boolean = process.env.NODE_ENV !== EnvironmentMode.Development && process.env.NODE_ENV !== EnvironmentMode.Production;
// 对于环境变量，我们通常会假设它可能是字符串或 undefined
export const electronRendererUrl: string | undefined = process.env['ELECTRON_RENDERER_URL'];